﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Text;

using XianShang.Data;
using XianShang.Common;
using XianShang.Entity;
using XianShang.Data.DataProvider;

namespace XianShang.Data.DataProvider
{
    public class Report
    {
        #region remit
        /// <summary>
        /// 取得最近30天匯款成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneMonth_Remit(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneMonth_Remit(area);
        }
        /// <summary>
        ///  取得最近7天匯款成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneWeek_Remit(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneWeek_Remit(area);
        }

        /// <summary>
        ///  取得某一天成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneDay_Remit(string area, DateTime dt)
        {
            return DatabaseProvider.GetInstance().GetNearOneDay_Remit(area,dt);
        }
        /// <summary>
        /// 取得最近30天匯款成交數量
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneMonthNum_Remit(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneMonthNum_Remit(area);
        }
        /// <summary>
        ///  取得最近7天匯款成交數量
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneWeekNum_Remit(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneWeekNum_Remit(area);
        }

        /// <summary>
        ///  取得某一天成交數量
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneDayNum_Remit(string area, DateTime dt)
        {
            return DatabaseProvider.GetInstance().GetNearOneDayNum_Remit(area, dt);
        }
         /// <summary>
        /// 取得某個月匯款成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetYearMonth_Remit(string area, string year, string month)
        {
            return DatabaseProvider.GetInstance().GetYearMonth_Remit(area,year,month);
        }
        /// <summary>
        /// 某個月匯款成交數量
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetYearMonthNum_Remit(string area, string year, string month)
        {
            return DatabaseProvider.GetInstance().GetYearMonthNum_Remit(area, year, month);
        }
#endregion

        #region swapcard

         /// <summary>
        /// 取得最近7天成交記錄點數
        /// </summary>
        /// <param name="area"></param>
        /// <returns></returns>
        public static DataSet GetNearOneWeekCardPoint_SwapCard(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneWeekCardPoint_SwapCard(area);
        }

   /// <summary>
        /// 某個月匯款成交點數
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetYearMonthCardPoint_SwapCard(string area, string year, string month)
        {
            return DatabaseProvider.GetInstance().GetYearMonthCardPoint_SwapCard(area,year,month);
        }

        /// <summary>
        /// 進一個月交易點數
        /// </summary>
        /// <param name="area"></param>
        /// <returns></returns>
        public static DataSet GetNearOneMonthCardPoint_SwapCard(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneMonthCardPoint_SwapCard(area);
        }

/// <summary>
        ///  取得某一天成交記錄點數
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetOneDayNumCardPoint_SwapCard(string area, DateTime dt)
        {
            return DatabaseProvider.GetInstance().GetOneDayNumCardPoint_SwapCard(area,dt);
        }
        /// <summary>
        ///  取得某一天成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetOneDayNum_SwapCard(string area, DateTime dt)
        {
            return DatabaseProvider.GetInstance().GetOneDayNum_SwapCard(area, dt);
        }
        // <summary>
        /// 進一個月交易數量
        /// </summary>
        /// <param name="area"></param>
        /// <returns></returns>
        public static DataSet GetNearOneMonthNum_SwapCard(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneMonthNum_SwapCard(area);
        }
        /// <summary>
        /// 某個月匯款成交數量
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetYearMonthNum_SwapCard(string area, string year, string month)
        {
            return DatabaseProvider.GetInstance().GetYearMonthNum_SwapCard(area, year, month);
        }
        /// <summary>
        ///  取得最近7天匯款成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneWeekNum_SwapCard(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneWeekNum_SwapCard(area);
        }
       #endregion

        #region moveaccount
        /// <summary>
        ///  取得某一天成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetOneDayNum_MoveAccount(string area, DateTime dt)
        {
            return DatabaseProvider.GetInstance().GetOneDayNum_MoveAccount(area, dt);
        }
        /// <summary>
        /// 進一個月交易數量
        /// </summary>
        /// <param name="area"></param>
        /// <returns></returns>
        public static DataSet GetNearOneMonthNum_MoveAccount(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneMonthNum_MoveAccount(area);
        }
        /// <summary>
        /// 某個月匯款成交數量
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetYearMonthNum_MoveAccount(string area, string year, string month)
        {
            return DatabaseProvider.GetInstance().GetYearMonthNum_MoveAccount(area, year, month);
        }
        /// <summary>
        ///  取得最近7天匯款成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneWeekNum_MoveAccount(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneWeekNum_MoveAccount(area);
        }
#endregion

        #region IBON匯款

        /// <summary>
        /// 取得最近30天匯款成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneMonth_Ibon(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneMonth_Ibon(area);
        }
        public static DataSet GetNearOneMonthNum_Ibon(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneMonthNum_Ibon(area);
        }
        /// <summary>
        ///  取得最近7天匯款成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneWeek_Ibon(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneWeek_Ibon(area);
        }

        /// <summary>
        ///  取得最近7天匯款成交數量
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneWeekNum_Ibon(string area)
        {
            return DatabaseProvider.GetInstance().GetNearOneWeekNum_Ibon(area);
        }

        /// <summary>
        ///  取得某一天成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneDayNum_Ibon(string area, DateTime dt)
        {
            return DatabaseProvider.GetInstance().GetNearOneDayNum_Ibon(area,dt);
        }
        /// <summary>
        ///  取得某一天成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetNearOneDay_Ibon(string area, DateTime dt)
        {
            return DatabaseProvider.GetInstance().GetNearOneDay_Ibon(area,dt);
        }

        /// <summary>
        /// 取得某個月匯款成交記錄
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetYearMonth_Ibon(string area, string year, string month)
        {
            return DatabaseProvider.GetInstance().GetYearMonth_Ibon(area,year,month);
        }
        /// <summary>
        /// 某個月匯款成交數量
        /// </summary>
        /// <param name="area">地區如果為0則代表全部地區</param>
        /// <returns></returns>
        public static DataSet GetYearMonthNum_Ibon(string area, string year, string month)
        {
            return DatabaseProvider.GetInstance().GetYearMonthNum_Ibon(area,year,month);
        }
        #endregion
    }
}
